﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Qiang.Topology.Geometries;


namespace Qiang.Controls
{
    public class MapMouseArgs : MouseEventArgs
    {
        public MapMouseArgs(MouseEventArgs e,MapControl control)
            :base(e.Button,e.Clicks ,e.X ,e.Y,e.Delta)
        {
            if (control != null)
            {
                this._control = control;
                this._geoLocation = control.PixelToProj(e.Location);
            }
        }


        private Coordinate _geoLocation;

        public Coordinate GeoLocation
        {
            get { return _geoLocation; }
            set { _geoLocation = value; }
        }


        private MapControl _control;

        public MapControl Control
        {
            get { return _control; }
            set { _control = value; }
        }

    }
}
